花費 16 ms
Lintcode: Backpack

DP. boolean d[i][j]: For the first i items, can we fill a backpack of size j? true or false ...

Tue Feb 03 17:14:00 CST 2015 2 3299
Leetcode: Best Time to Buy and Sell Stock IV

這道題在Best Time to Buy and Sell Stock III做過,那道題只是把k取了2而已 遞推式依然是 local[i][j]=max(global[i-1][j ...

Sun Mar 01 20:40:00 CST 2015 0 3181

 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM